import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void transfrom(int[] arr){
        for(int i=0; i<arr.length; i++){
            arr[i]=arr[i]*2;
        }
    }
    public static void main(String[] args) {
        System.out.println("请输入要修改的数字：");
        Scanner sc = new Scanner(System.in);
        int[] arr=new int[5];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=sc.nextInt();
        }
        System.out.println("修改前："+(Arrays.toString(arr)));
        transfrom(arr);
        System.out.println("修改后："+(Arrays.toString(arr)));
    }
}